package com.dmap.knowledge.service;

import com.dmap.knowledge.po.ArticleTag;

import java.util.List;

public interface ArticleTagService {
    /**
     * 通过articleid找tag
     * @param id
     * @return
     */
    public List<ArticleTag> selectByArticleId(long id);
    
    /**
     * 插入article Tag
     * @param articleId
     * @param tagTypeId
     * @param tagTypeName
     * @param tagId
     * @param tagName
     * @param createTime
     * @return
     */
    public int insertArticleTag(long articleId, long tagTypeId, String tagTypeName, long tagId, String tagName, long createTime);
    
    /**
     * 通过articleId 删除tags
     * @param articleId
     * @return
     */
    public int deleteArticleTagByArticleId(long articleId);


    Integer countArticleNumberByTagId(long tagId);
}
